from ui.designer_window import Ui_MainWindow

class DataConf_Window(Ui_MainWindow):
    def setupFlags(self):
        """
        初始化各种标志
        """
        self.ser_state_flag = 0
        pass

    def setupAction(self):
        self.btn_open_ser.clicked.connect(self.set_OpenSerFlag)
        self.btn_close_ser.clicked.connect(self.set_CloseSerFlag)
        pass

    def set_OpenSerFlag(self):
        self.ser_state_flag = 1

    def set_CloseSerFlag(self):
        self.ser_state_flag = -1